package com.nyist.mq.enums;

/**
 * 1.
 *
 * @author yangxiaogen
 * @date 2023/3/24 10:54
 */
public enum RocketEnum {

    TOPIC("NYIST_TOPIC", "topic一个项目为同一个"),

    TAG_SEND("send","只发送消息,无结果通知"),

    TAG_ASYNC_SEND("asyncSend","异步发送消息,等待回调通知结果"),

    TAG_SYNC_SEND("syncSend","同步发送消息,直接响应通知结果"),

    TAG_TX_CHARGE("charge","发送等待事务消息,成功提交, 失败回滚"),

    TAG_OTHER("otherTag","其他tag"),

    ;

    private final String code;

    private final String name;

    RocketEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

}
